<style type="text/css">
    .CodeMirror {
        border: 0px solid black;
        font-size: 16px;
        height: 100%;
    }
</style>
<link rel="stylesheet" href="/static/webide/plugins/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="/static/webide/plugins/codemirror/addon/hint/show-hint.css">
<!-- jQuery 2.1.4 -->
<!--<script src="/static/webide/plugins/jQuery/jQuery-2.1.4.min.js"></script>-->
<!-- FastClick -->
<script src="/static/webide/plugins/fastclick/fastclick.js"></script>
<!-- scrollup -->
<script src="/static/webide/plugins/scrollup/jquery.scrollUp.min.js"></script>
<!-- common -->
<script src="/static/webide/plugins/codemirror/lib/codemirror.js"></script>
<script src="/static/webide/plugins/codemirror/mode/clike/clike.js"></script>
<script src="/static/webide/plugins/codemirror/addon/hint/show-hint.js"></script>
<script src="/static/webide/plugins/codemirror/addon/hint/anyword-hint.js"></script>
<script src="/static/webide/plugins/jobcode.index.js"></script>


<div class="content-wrapper">
    <div class="wrapper">
        <div class="row">
            <div class="col-xs-2">
                <div class="input-group margin">
                    <div class="input-group-btn">
                        <button type="button" class="btn btn-primary" id="save">弹出</button>
                    </div>
                </div>
            </div>
        </div>
        <section class="content">
            <div class="row">
                <div class="col-xs-4">
                    <div class="input-group margin">
                        <textarea id="glue_now" style="display:none;">
                package com.xxl.job.service.handler;

                import org.slf4j.Logger;
                import org.slf4j.LoggerFactory;
                import com.xxl.job.core.handler.IJobHandler;

                public class DemoGlueJobHandler extends IJobHandler {
                    private static transient Logger logger = LoggerFactory.getLogger(DemoGlueJobHandler.class);

                    @Override
                    public void execute(String... params) throws Exception {
                        logger.info("XXL-JOB, Hello World.asdasd!asdasd");
                    }
                }
                                        </textarea>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="box callout callout-info">
                        <textarea id="glueSource"></textarea>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>

<script type="text/javascript">
    $("#save").click(function () {
        alert(codeEditor.getValue());
    });
</script>